package top.sxlai.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import top.sxlai.entity.OpSharefile;

import java.util.List;

/**
 *
 * @author sxl
 * @since 2024-04-23 16:10:48
 */
@Mapper
@Repository
public interface OpSharefileMapper extends BaseMapper<OpSharefile> {

    int createShare(OpSharefile opSharefile);

    OpSharefile checkShare(@Param("shareId") String shareId);

    List<OpSharefile> managementSharing(@Param(("sharer")) String username);

    void updatePageView(String shareId);

    int cancelSharing(String shareId);

    void deleteSharing(String shareId);
}
